package pages;

import org.openqa.selenium.By;
import utils.Log4Test;
import utils.WebDriverWrapper;

/**
 * Created by Vadim on 6/10/14.
 */
public class BTPage extends BasePage {
    private static final String URL_BT = "http://bt.rozetka.com.ua/";
    private static final By pageBT = By.xpath("//*[@id='bt']/div/a");

    public BTPage(WebDriverWrapper driver) {
        super(driver, URL_BT);
    }

    public void open() {
        driver.findElement(pageBT).click();
        if (driver.getCurrentUrl().equals(URL_BT)) {
            Log4Test.info("Page bytovaya tehnika is opened");
        } else {
            Log4Test.error("Page bytovaya tehnika isn't opened");
        }
    }

}
